"use strict";
const utils = require("utils");
const index = require("./tool/index.js");
exports.main = async (event, context) => {
  console.log("----", event);
  let signErrResult = utils.util.checkSign(event);
  if (!utils.util.nilValue(signErrResult)) {
    return signErrResult;
  }
  let [flow_err, flow_data] = await index.getFlowData();
  return utils.util.resPack(flow_data, flow_err);
};
